import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
// import {AdminComponent} from "./admin.component";
import {LoginComponent} from './login/login.component';

const routes: Routes = [
  {path: 'admin/login', component: LoginComponent},
  {path: 'permissions', loadChildren: 'app/admin/permissions/permissions.module#PermissionsModule'},
  {path: 'template', loadChildren: 'app/admin/template/template.module#TemplateModule'},
  {path: 'client-manage', loadChildren: 'app/admin/client-manage/client-manage.module#ClientManageModule'},
  {path: 'program-manage', loadChildren: 'app/admin/program-manage/program-manage.module#ProgramManageModule'},
  {path: 'dash', loadChildren: 'app/admin/dash/dash.module#DashModule'},
  {path: 'article-manage', loadChildren: 'app/admin/article-manage/article-manage.module#ArticleManageModule'},
  {path: 'home-config', loadChildren: 'app/admin/home-config/home-config.module#HomeConfigModule'},
  {path: 'category-manage', loadChildren: 'app/admin/category-manage/category-manage.module#CategoryManageModule'},
  {path: 'member', loadChildren: 'app/admin/member/member.module#MemberManageModule'},
  {path: 'release-market', loadChildren: 'app/admin/release-market/release-market.module#ReleaseMarketModule'},
  {path: 'coupon-manage', loadChildren: 'app/admin/coupon-manage/coupon-manage.module#CouponManageModule'},
  {path: 'withdraw', loadChildren: 'app/admin/withdraw/withdraw.module#WithdrawModule'},
  // {path: 'invitation', loadChildren: 'app/admin/invitation/invitation.module#InvitationModule'},
  // {path: 'tuike', loadChildren: 'app/admin/tuike/tuike.modåule#TuikeModule'},
  // {path: 'category', loadChildren: 'app/admin/category/category.module#CategoryModule'}
];

@NgModule({
    imports: [
      RouterModule.forChild(routes)
    ],
    exports: [
      RouterModule
    ],
    providers: []
})
export class AdminRoutingModule {
}
